<? 
	$pageName = "login";
	include ROOT . '/view/common/header.php';
?>

<div class="container">

<div class="jumbotron" style="margin:150px 0 350px 0">
  <center>
    <h1>大学教务管理系统</h1>
  </center>
  <? if(isset($_GET['fail'])) { ?><div class="alert alert-danger" role="alert">登录失败：用户名或密码错误</div><? }?>
  <form method="post" action="/session/login/" style="text-align: center">
    <div style="max-width: 330px; padding: 15px; margin: 0 auto;">
      <input name="username" type="text" class="form-control" style="margin-bottom: 3px" placeholder="用户名" required autofocus>
      <input name="password" type="password" class="form-control" style="margin-bottom: 3px" placeholder="密码" required>
      <center>
        <button class="btn btn-lg btn-primary btn-block" style="float: left; width: 45%; margin-right: 10px; margin-top: 5px; margin-left: 10px;" type="submit">登录</button>
        <a class="btn btn-lg btn-primary btn-block" style="float: left; width: 45%; margin-right: 10px;" href="/session/resetPassword/">重置密码</a>
      </center>
    </div>
  </form>
</div>

</div>
<? include ROOT . '/view/common/footer.php'; ?>